package com.demo.test.command;

import com.demo.test.command.iml.Command;
import com.demo.test.command.iml.Receiver;

public class ConcreteCommandB implements Command {

    private ReceiverB receiver;

    public ConcreteCommandB( ){
        this.receiver = new ReceiverB();
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
